<?php
//library
require_once("nusoap/lib/nusoap.php");
//db
require_once("class/class.db.jeegoon.php");
//objects
require_once("class/class.member.php");
//functions
require_once("class/class.member.getmemberbyid.php");
require_once("class/class.member.getmemberbyname.php");
require_once("class/class.member.setmember.php");
require_once("class/class.member.getmaxno.php");

//definition
$ns="http://www.jeegoon.com/jeegoonsvc.php";

//config wsdl
$soap = new soap_server;
$soap->configureWSDL('GetMemberByID',$ns); 
$soap->configureWSDL('GetMemberByName',$ns);
$soap->configureWSDL('SetMember',$ns);
$soap->configureWSDL('GetMaxNO',$ns);
$soap->wsdl->schemaTargetNamespace=$ns;

//add complex type
require_once("svc/soap.member.php");

//registry service
require_once("svc/register.getmemberbyid.php");
require_once("svc/register.getmemberbyname.php");
require_once("svc/register.setmember.php");
require_once("svc/register.getmaxno.php");


$soap->soap_defencoding = 'utf-8';
$soap->decode_utf8 = false;
$soap->xml_encoding = 'utf-8';


$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
$soap->service($HTTP_RAW_POST_DATA);
?>
